//
//  UIImageView+resize.m
//  taosha
//
//  Created by lienbao on 04/06/2014.
//  Copyright (c) 2014 com.b5m.taosha. All rights reserved.
//

#import "UIImageView+resize.h"
#import "UIComponent.h"

@implementation UIImageView (resize)

- (void)resizableHeightWithImage:(UIImage *)image default:(UIImage *)defImage
{
    image = image == nil ? defImage:image;
    self.image = image;
    self.height = [image resizableHeightWithFixedwidth:self.width];
}

@end
